package com.news.ssh.entity;

import java.util.Date;

/**
 * NewsDatail entity. @author MyEclipse Persistence Tools
 */

public class NewsDatail implements java.io.Serializable {

	// Fields

	private Integer id;
	private NewsCategory newsCategory;
	private String title;
	private String summary;
	private String author;
	private Date createdate;

	// Constructors

	/** default constructor */
	public NewsDatail() {
	}

	/** minimal constructor */
	public NewsDatail(NewsCategory newsCategory, String title) {
		this.newsCategory = newsCategory;
		this.title = title;
	}

	/** full constructor */
	public NewsDatail(NewsCategory newsCategory, String title, String summary,
			String author, Date createdate) {
		this.newsCategory = newsCategory;
		this.title = title;
		this.summary = summary;
		this.author = author;
		this.createdate = createdate;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public NewsCategory getNewsCategory() {
		return this.newsCategory;
	}

	public void setNewsCategory(NewsCategory newsCategory) {
		this.newsCategory = newsCategory;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSummary() {
		return this.summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getAuthor() {
		return this.author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Date getCreatedate() {
		return this.createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

}